package top.rainbowecho.article.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import top.rainbowecho.article.vo.ArticleLikeVo;
import top.rainbowecho.model.percona.Like;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 杨健
 * @since 2020-07-25
 */
public interface LikeMapper extends BaseMapper<Like> {

    /**
     * 插入点赞记录
     *
     * @param likeVo
     */
    void insertRecord(Like likeVo);

    /**
     * 移除点赞记录
     *
     * @param likeVo
     * @return 受影响的行数
     */
    int remove(ArticleLikeVo likeVo);
}
